package com.jzo2o.customer.controller.worker;

import com.jzo2o.customer.model.domain.AgencyCertificationAuditor;
import com.jzo2o.customer.model.domain.WorkerCertification;
import com.jzo2o.customer.model.domain.WorkerCertificationAuditor;
import com.jzo2o.customer.model.dto.request.WorkerCertificationAuditAddReqDTO;
import com.jzo2o.customer.model.dto.response.EvaluationAndOrdersResDTO;
import com.jzo2o.customer.service.EvaluationService;
import com.jzo2o.customer.service.IWorkerCertificationAuditorService;
import com.jzo2o.customer.service.IWorkerCertificationService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.util.List;

/**
 * 评价相关接口
 *
 * @author itcast
 * @create 2023/9/11 16:14
 **/
@RestController("workerCertificationController")
@RequestMapping("/worker/worker-certification-audit")
@Api(tags = "服务端 - 认证相关接口")
public class WorkerCertificationController {
    @Resource
    private IWorkerCertificationService workerCertificationService;

    @Resource
    private IWorkerCertificationAuditorService workerCertificationAuditorService;

    @PostMapping
    @ApiOperation("服务端提交认证")
    public void submit(@RequestBody WorkerCertificationAuditAddReqDTO reqDTO) {
         workerCertificationService.submit(reqDTO);
    }

    @GetMapping("/rejectReason")
    @ApiOperation("获取验证失败字符串")
    public WorkerCertificationAuditor rejectReason(){
        return  workerCertificationAuditorService.rejectReason();
    }

}
